import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import less from 'less'
import router from './router'
import request from './axios.js';
import store from './store'
Vue.config.productionTip = false
import * as echarts from 'echarts';
import moment from 'moment'; //导入模块
moment.locale('zh-cn'); //设置语言 或 moment.lang('zh-cn');
Vue.prototype.$moment = moment;

Vue.prototype.$echarts = echarts

Vue.prototype.request = request

Vue.use(ElementUI)
Vue.use(less)
new Vue({
  router,
  store,
  
  render: h => h(App),
  beforeCreate(){
    // 在初始化阶段前 配置全局事件总线,bus
    Vue.prototype.$bus = this
  }
}).$mount('#app')
